package cho05;

/**
 * Created by 春旺 on 2017/4/3.
 */
//****************************************************************************************************
//   Box.java      Java Foundations
//  set a named Box class.
//****************************************************************************************************
    import java.util.Scanner;
public class Box
{
        private int length ;
        private int width ;
        private int depth ;
        private int beginning = 0;
        private int now;
        private int full =1;
        public Box()
        {
            length = 10;
            width =10;
            depth = 10;
        }
        public int pour()
        {

            now = beginning+1;
            return(now);
        }
        public boolean situation()
        {
            return (now == full);
        }
        public String toString()
        {
            if(now ==full)
                return ("FULL");
            else
                return ("EMPTY");
        }
        public void LooksLike()
        {
            System.out.println("The length is: "+length+"\nThe width is: "+width+"\nThe depth is: "+depth);
        }

    }





